import request from '@/utils/request'

// 查询设备维护记录列表
export function listRec(query) {
  return request({
    url: '/business/rec/list',
    method: 'get',
    params: query
  })
}

// 查询设备维护记录详细
export function getRec(recordId) {
  return request({
    url: '/business/rec/' + recordId,
    method: 'get'
  })
}

// 新增设备维护记录
export function addRec(data) {
  return request({
    url: '/business/rec',
    method: 'post',
    data: data
  })
}

// 修改设备维护记录
export function updateRec(data) {
  return request({
    url: '/business/rec',
    method: 'put',
    data: data
  })
}

// 删除设备维护记录
export function delRec(recordId) {
  return request({
    url: '/business/rec/' + recordId,
    method: 'delete'
  })
}
